
/** 
Copyright (c) 2010, Sheikh Abdul Wahid Ahmed
Details @ http://extremecodeworld.codeplex.com/license
**/

using System;
using System.Collections;
using System.Data;

namespace EXtremecode.Common
{
	/// <summary>
	/// Summary description for TypeHash.
	/// </summary>
	public class CaseInsensitiveHashtable:Hashtable
	{

		public CaseInsensitiveHashtable()
		{
		

			
		}
		
		#region Hidden Methods
		public override void Add(object key, object value)
		{
			base.Add(key.ToString().ToUpper(),value);
		}
		
		public override object this[object key]
		{
			get
			{
				return base[key.ToString().ToUpper()];
			}
			set
			{
				base[key.ToString().ToUpper()] = value;
			}
		}
		public override bool Contains(object key)
		{
			return base.Contains (key.ToString().ToUpper());
		}

		public override bool ContainsKey(object key)
		{
			return base.ContainsKey (key.ToString().ToUpper());
		}



		#endregion
	}
}
